.workspace-frame {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  padding: 12px 12px 110px;
}

.rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(12, 29, 64, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.rail-left {
  left: 24px;
}

.rail-right {
  right: 24px;
}

.rail__title {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.rail__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rail-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  color: #5f6368;
  transition: all 0.2s ease;
  position: relative;
}

.rail-button img {
  width: 20px;
  height: 20px;
}

.rail-button:hover {
  background-color: rgba(240, 243, 247, 0.9);
  color: var(--accent-strong);
  border-color: var(--border);
}

.rail-button.is-active {
  background: linear-gradient(135deg, #1f6feb, #5c89ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(31, 111, 235, 0.35);
}

.rail-button.is-active img {
  filter: brightness(0) invert(1);
}
